//
//  FunctionListMenu.h
//  mcrmSAAS
//
//  Created by wjxfhxy on 15-5-4.
//  Copyright (c) 2015年 GuangZhouXuanWu. All rights reserved.
//

#import <UIKit/UIKit.h>

@class FunctionListMenu;

@protocol FunctionListMenuDelegate <NSObject>

-(void)functionListMenu:(FunctionListMenu*)functionListMenu clickRowAtIndex:(NSUInteger)index;

-(void)functionListMenu:(FunctionListMenu*)functionListMenu touchEmpty:(id)sender;

@end

@interface FunctionListMenu : UIView

@property(nonatomic,weak) id<FunctionListMenuDelegate> delegate;

@property(nonatomic,readonly) NSUInteger selectedIndex;

-(id)initWithParentView:(UIView*)parentView;

-(void)addMenuItemWithText:(NSString*)text;

-(void)setMenuItemCount:(NSInteger)count atIndex:(NSUInteger)index;

-(void)setMenuItemSelected:(BOOL)selected atIndex:(NSUInteger)index;

-(void)show;

-(void)dismiss;

@end
